package com.heima.Output;

import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo02 {
    public static void main(String [] args) throws IOException {
        String path = "day10/src/com/heima/data/test2.txt";
        FileOutputStream fos = new FileOutputStream(path);

        byte[] bys = "abcfgggg".getBytes();
        fos.write(bys);
//        fos.write(bys,1,3);
        fos.close();
    }
}
